﻿using StepsManagerLibrary.Interfaces;
namespace StepsManagerLibrary.Events
{
    public class ActionEventArgs
    {
        #region Fields

        #region Title
        private readonly string _title;

        /// <summary>
        /// Title of an IStepControl
        /// </summary>
        public string Title
        {
            get { return _title; }
        } 
        #endregion

        #region Step
        private readonly IStepControl _step;

        /// <summary>
        /// IStepControl
        /// </summary>
        public IStepControl Step
        {
            get { return _step; }
        }  
        #endregion
        
        #endregion

        #region Constructors
        
        /// <summary>
        /// Creates an ActionExepectedEventArgs with an IStepControl title
        /// for information
        /// </summary>
        /// <param name="title">Title of the IStepControl</param>
        public ActionEventArgs(string title)
        {
            _title = title;
        }

        /// <summary>
        /// Creates an ActionExepectedEventArgs with an IStepControl
        /// for information
        /// </summary>
        /// <param name="step"></param>
        public ActionEventArgs(IStepControl step)
        {
            _step = step;
        } 

        #endregion
    }
}
